package com.hl.ruoyilkshop.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 店铺分类对象 business_class
 * 
 * @author ruoyi
 * @date 2025-08-07
 */
public class BusinessClass extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 店铺分类ID */
    private Long id;

    /** 所属店铺ID */
    @Excel(name = "所属店铺ID")
    private Long businessId;

    /** 店铺分类名称 */
    @Excel(name = "店铺分类名称")
    private String name;

    /** 父分类ID */
    @Excel(name = "父分类ID")
    private Long parentId;

    /** 分类等级 */
    @Excel(name = "分类等级")
    private Long level;

    /** 商品类型:1-实物商品,2-虚拟商品 */
    @Excel(name = "商品类型:1-实物商品,2-虚拟商品")
    private Long goodsType;

    /** 分类图片 */
    @Excel(name = "分类图片")
    private String img;

    /** 子分类列表 */
    private List<BusinessClass> children;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setBusinessId(Long businessId) 
    {
        this.businessId = businessId;
    }

    public Long getBusinessId() 
    {
        return businessId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }

    public void setGoodsType(Long goodsType) 
    {
        this.goodsType = goodsType;
    }

    public Long getGoodsType() 
    {
        return goodsType;
    }

    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    public void setChildren(List<BusinessClass> children) 
    {
        this.children = children;
    }

    public List<BusinessClass> getChildren() 
    {
        return children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("businessId", getBusinessId())
            .append("name", getName())
            .append("parentId", getParentId())
            .append("level", getLevel())
            .append("goodsType", getGoodsType())
            .append("img", getImg())
            .append("children", getChildren())
            .toString();
    }
}
